package routes

import (
	"main/src/controllers"
	"main/src/middlewares"
	"github.com/gofiber/fiber/v2"
)

func CertBotRoute(app *fiber.App) fiber.Router {
	certbot := app.Group("/.well-known/acme-challenge", middlewares.AllRequests)
	certbot.Get("/:acme", controllers.ReturnAcme)

	return certbot
}
